FROM mysql:5.5

RUN chmod +x /usr/local/bin/docker-entrypoint.sh && \
    mkdir -p /opt/sql/
COPY ./init/ /docker-entrypoint-initdb.d/
COPY zx.sql /opt/sql
RUN chown -R mysql:mysql /docker-entrypoint-initdb.d/ && \
    chown -R mysql:mysql /opt/sql

